package com.rong.tools.exception;

/**
 * @author 周厚荣
 * @date 2025/4/21 21:53
 */
public class BusinessException extends RuntimeException{
        private int code;
        public BusinessException(String message) {
            super(message);
            this.code = 500;
        }

        public BusinessException(String message,Integer code) {
            super(message);
            this.code = code;
        }

        public Integer getCode() {
            return this.code;
        }
}
